package com.dt.app.modules.content.entities;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 内容媒体库
 * </p>
 *
 * @author 陈辉
 * @since 2024-03-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("content_media")
@ApiModel(value="ContentMedia对象", description="内容媒体库")
public class ContentMedia implements Serializable {

    private static final long serialVersionUID=20240313224712981L;

    @ApiModelProperty(value = "内容媒体库")
    @TableId(value = "content_media_id", type = IdType.AUTO)
    private Long contentMediaId;

    @ApiModelProperty(value = "内容id")
    @TableField("content_id")
    private Long contentId;

    @ApiModelProperty(value = "发布人")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty(value = "媒体地址")
    @TableField("media_url")
    private String mediaUrl;

    @ApiModelProperty(value = "类型 1文字 2图片 3语言 4视频")
    @TableField("media_type")
    private Integer mediaType;

    @ApiModelProperty(value = "排序")
    @TableField("seq")
    private Integer seq;

    @ApiModelProperty(value = "媒体描述")
    @TableField("media_description")
    private String mediaDescription;


}
